package com.springboot.onlinemusicserver.utils.common;

/**
 * Created with IntelliJ IDEA.
 * Description :
 * User: jiume
 * Date: 2025-05-20
 * Time: 14:38
 */
public class SpecialCharacters {
    private static final String REGEX = "^[\\u4e00-\\u9fa5a-zA-Z0-9_]+$";

    /**
     * 判断是否包含特殊字符
     * @param regex 需要判断的字符
     * @return 包含—false
     */
    public static boolean Contains(String regex) {
        return regex.matches(REGEX);
    }
}
